-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
	-- -- Conky settings -- #
	background = true,
	update_interval = 5,

	cpu_avg_samples = 2,
	net_avg_samples = 2,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 2048,
	imlib_cache_size = 0,

	-- -- Window specifications -- #

	own_window = true,
	own_window_type = 'desktop',
	--own_window_transparent = true,
	own_window_hints = 'sticky,skip_taskbar,skip_pager,below',

	border_inner_margin = 0,
	border_outer_margin = 5,

	minimum_width = 960, minimum_height = 960,
	maximum_width = 960,

	alignment = 'top_middle',
	gap_x = 15,
	gap_y = 10,
	own_window_argb_visual = true,
	own_window_argb_value = 150,

	-- -- Graphics settings -- #
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	-- -- Text settings -- #
	use_xft = true,
	font = 'WenQuanYi Microhei:size=10',
	font1 = 'WenQuanYi Microhei:size=8',
	font2 = 'WenQuanYi Microhei:size=12',
	xftalpha = 0.8,

	uppercase = false,

	default_color = 'white',   -- regular text
	color1 = '#703d0a',
	color2 = '#68a315',        -- highlight important packages
	color3 = '#333',           -- secondary panel labels
	color4 = '#999'            -- secondary panel text
}

conky.text = [[
${color3}${hr 4}
${color1}${font2}消息通知
${color2}${font1}some message
${color3}$hr
${color}${font}沪深300:
${image /home/pi/Pictures/imgdata/HUSHEN300.png -p 0,90 -s 450x240}
${voffset -50}
${offset 480}${color}${font}标普500:
${image /home/pi/Pictures/imgdata/SPX.png -p 480,90 -s 450x240}
${voffset 180}
${color3}$hr
${color}${font}百度热搜:
${color4}${font1}${rss http://local.mhugh.net/rsshub/baidu/top 600 item_titles 10 2}
${voffset -175}
${offset 480}${color}${font}经济50人:
${color4}${font1}${rss http://local.mhugh.net/rsshub/50forum 600 item_titles 10 162}
${voffset 10}${color}${font}新华电讯:
${color4}${font1}${rss http://local.mhugh.net/rsshub/mrdx/today 600 item_titles 10 2}
${voffset -175}
${offset 480}${color}${font}唐山要闻:
${color4}${font1}${rss http://local.mhugh.net/rsshub/tangshanribao/hebnews_ts 600 item_titles 10 162}
${color3}${hr 4}
]]
